From: Umang Jain Date: Mon, 16 Dec 2019 18:41:49 +0000 (+0530) Subject: shellEntry: Remove isPassword Property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~304 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a1238a0ea438fc4111e5f55a98259b65c6e7d1d9;p=gnome-shell.git shellEntry: Remove isPassword Property https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/619 --- diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index 79a38bf56..53aed6049 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -41,24 +41,6 @@ var EntryMenu = class extends PopupMenu.PopupMenu { this._passwordItem = item; } - get isPassword() { - return this._passwordItem != null; - } - - set isPassword(v) { - if (v == this.isPassword) - return; - - if (v) { - this._makePasswordItem(); - this._entry.input_purpose = Clutter.InputContentPurpose.PASSWORD; - } else { - this._passwordItem.destroy(); - this._passwordItem = null; - this._entry.input_purpose = Clutter.InputContentPurpose.NORMAL; - } - } - open(animate) { this._updatePasteItem(); this._updateCopyItem(); @@ -144,10 +126,9 @@ function addContextMenu(entry, params) { if (entry.menu) return; - params = Params.parse(params, { isPassword: false, actionMode: Shell.ActionMode.POPUP }); + params = Params.parse(params, { actionMode: Shell.ActionMode.POPUP }); entry.menu = new EntryMenu(entry); - entry.menu.isPassword = params.isPassword; entry._menuManager = new PopupMenu.PopupMenuManager(entry, { actionMode: params.actionMode }); entry._menuManager.addMenu(entry.menu);